﻿using Abp.AutoMapper;
using Batman.Cms.Core.Const;
using Batman.Cms.Domains;
using System.ComponentModel.DataAnnotations;

namespace Batman.Cms.Controllers.Weixins.Input
{
    [AutoMap(typeof(OpenAccount))]
    public class CreateWeixinMpAccountInput
    {
        [Required(ErrorMessage = "请输入名称备注")]
        [Display(Name = "账号名称")]
        public string Name { get; set; }

        [Required(ErrorMessage = "请输入微信AppId")]
        public string AppId { get; set; }

        [Required(ErrorMessage = "请输入秘钥")]
        [Display(Name = "秘钥")]
        public string Secret { get; set; }

        [Required(ErrorMessage = "请输入服务公众号")]
        [Display(Name = "服务公众号")]
        public string ServiceNo { get; set; }

        [UIHint(Edition.TextArea)]
        [Display(Name = "描述")]
        public string Description { get; set; }

        [Display(Name = "公众号状态")]
        public OpenAccountStatus Status { get; set; }
    }
}
